<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.11.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>CheLive: CoreTexture: Класс TTexture</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<a name="TTexture"></a><h1 class="cio">Класс TTexture</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Описание</a></td><td><a class="section"  href="#%40Hierarchy">Иерархия</a></td><td><a class="section"  href="#%40Fields">Поля</a></td><td><a class="section"  href="#%40Methods">Методы</a></td><td>Свойства</td></tr></table>
<a name="%40Description"></a><h2 class="unit">Модуль</h2>
<p class="unitlink">
<a   href="CoreTexture.html">CoreTexture</a></p>
<h2 class="declaration">Объявления</h2>
<p class="declaration">
<code>type TTexture = class(<a class="normal"  href="CoreTypes.TListItem.html">TListItem</a>)</code></p>
<h2 class="description">Описание</h2>
<p>
Текстура      </p>
<a name="%40Hierarchy"></a><h2 class="hierarchy">Иерархия</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="ancestor"><a class="normal"  href="CoreTypes.TListItem.html">TListItem</a></li>
<li class="thisitem">TTexture</li></ul><h2 class="overview">Обзор</h2>
<a name="%40Fields"></a><h3 class="summary">Поля</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a   href="CoreTexture.TTexture.html#fileName">fileName</a></b>: String;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a   href="CoreTexture.TTexture.html#id">id</a></b>: TGLuint;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a   href="CoreTexture.TTexture.html#w">w</a></b>: Integer;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a   href="CoreTexture.TTexture.html#h">h</a></b>: Integer;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a   href="CoreTexture.TTexture.html#format">format</a></b>: Integer;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a   href="CoreTexture.TTexture.html#curStage">curStage</a></b>: Integer;</code></td>
</tr>
</table>
<a name="%40Methods"></a><h3 class="summary">Методы</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CoreTexture.TTexture.html#Upload">Upload</a></b>(data: Pointer; w_, h_, format_, filter, wrap: Integer; mipMaps: Boolean): Boolean; overload;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CoreTexture.TTexture.html#Download">Download</a></b>(var data: <a   href="CoreTypes.html#TBytes">TBytes</a>): Boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CoreTexture.TTexture.html#Load">Load</a></b>(fileName_: String; filter: Integer = <a   href="CoreTexture.html#TEX_ANISO">TEX_ANISO</a>; wrap: Integer = <a   href="CoreTexture.html#TEX_REPEAT">TEX_REPEAT</a>; mipMaps: Boolean = True): Boolean; overload;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CoreTexture.TTexture.html#LoadTGA">LoadTGA</a></b>(fileName_: String; filter, wrap: Integer; mipMaps: Boolean): Boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CoreTexture.TTexture.html#Save">Save</a></b>(fileName_: String): Boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CoreTexture.TTexture.html#SaveTGA">SaveTGA</a></b>(fileName_: String): Boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CoreTexture.TTexture.html#Enable">Enable</a></b>(stage: Integer = 0);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CoreTexture.TTexture.html#Disable">Disable</a></b>; overload;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>class procedure <b><a   href="CoreTexture.TTexture.html#Disable">Disable</a></b>(stage: Integer); overload;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a   href="CoreTexture.TTexture.html#Create">Create</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a   href="CoreTexture.TTexture.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
</table>
<h2 class="description">Описание</h2>
<h3 class="detail">Поля</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="fileName"></a><code><b>fileName</b>: String;</code></td>
</tr>
<tr><td colspan="2">
<p>
имя файла из которого были загружены данные текстуры</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="id"></a><code><b>id</b>: TGLuint;</code></td>
</tr>
<tr><td colspan="2">
<p>
идентификатор текстуры</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="w"></a><code><b>w</b>: Integer;</code></td>
</tr>
<tr><td colspan="2">
<p>
ширина</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="h"></a><code><b>h</b>: Integer;</code></td>
</tr>
<tr><td colspan="2">
<p>
высота</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="format"></a><code><b>format</b>: Integer;</code></td>
</tr>
<tr><td colspan="2">
<p>
формат пикселя (<a class="normal"  href="CoreTexture.html#TEX_RGBA">TEX_RGBA</a>,...)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="curStage"></a><code><b>curStage</b>: Integer;</code></td>
</tr>
<tr><td colspan="2">
<p>
слой на котором включена текстура </p>
<h6 class="description_section">Материалы по теме</h6>
<dl class="see_also">
  <dt><a class="normal"  href="CoreTexture.TTexture.html#Enable">TTexture.Enable</a></dt>
  <dd></dd>
</dl>
</td></tr>
</table>
<h3 class="detail">Методы</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Upload"></a><code>function <b>Upload</b>(data: Pointer; w_, h_, format_, filter, wrap: Integer; mipMaps: Boolean): Boolean; overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Передача OpenGL пиксельных данных текстуры        </p>
<h6 class="description_section">Параметры</h6>
<dl class="parameters">
<dt>data</dt>
<dd>указатель на данные</dd>
<dt>w_</dt>
<dd>ширина</dd>
<dt>h_</dt>
<dd>высота</dd>
<dt>format_</dt>
<dd>формат пикселя (<a class="normal"  href="CoreTexture.html#TEX_RGBA">TEX_RGBA</a>,...)</dd>
<dt>filter</dt>
<dd>режим фильтрации (<a class="normal"  href="CoreTexture.html#TEX_POINT">TEX_POINT</a>,...)</dd>
<dt>wrap</dt>
<dd>режим обертывания текстурных координат (<a class="normal"  href="CoreTexture.html#TEX_REPEAT">TEX_REPEAT</a>, <a class="normal"  href="CoreTexture.html#TEX_CLAMP">TEX_CLAMP</a>)</dd>
<dt>mipMaps</dt>
<dd>если True то для текстуры будут сгенерированы уменьшенные копии (mip-уровни), для оптимиазции отрисовки, тогда, когда примитив находиться достаточно далеко от камеры</dd>
</dl>
<h6 class="description_section">Возвращаемые значения</h6>
<p class="return">True если данные зазружены</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Download"></a><code>function <b>Download</b>(var data: <a   href="CoreTypes.html#TBytes">TBytes</a>): Boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Выгрузка пиксельных данных текстуры  </p>
<h6 class="description_section">Параметры</h6>
<dl class="parameters">
<dt>data</dt>
<dd>массив в которые будут загружены данные</dd>
</dl>
<h6 class="description_section">Возвращаемые значения</h6>
<p class="return">True если данные были выгружены</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Load"></a><code>function <b>Load</b>(fileName_: String; filter: Integer = <a   href="CoreTexture.html#TEX_ANISO">TEX_ANISO</a>; wrap: Integer = <a   href="CoreTexture.html#TEX_REPEAT">TEX_REPEAT</a>; mipMaps: Boolean = True): Boolean; overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Загрузка текстуры из файла      </p>
<h6 class="description_section">Параметры</h6>
<dl class="parameters">
<dt>fileName_</dt>
<dd>имя файла</dd>
<dt>filter</dt>
<dd>режим фильтрации (<a class="normal"  href="CoreTexture.html#TEX_POINT">TEX_POINT</a>,...)</dd>
<dt>wrap</dt>
<dd>режим обертывания текстурных координат (<a class="normal"  href="CoreTexture.html#TEX_REPEAT">TEX_REPEAT</a>, <a class="normal"  href="CoreTexture.html#TEX_CLAMP">TEX_CLAMP</a>)</dd>
<dt>mipMaps</dt>
<dd>если True то для текстуры будут сгенерированы уменьшенные копии (mip-уровни)</dd>
</dl>
<h6 class="description_section">Возвращаемые значения</h6>
<p class="return">True если текстура загружена</p><h6 class="description_section">Материалы по теме</h6>
<dl class="see_also">
  <dt><a class="normal"  href="CoreTexture.TTexture.html#Upload">TTexture.Upload</a></dt>
  <dd></dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="LoadTGA"></a><code>function <b>LoadTGA</b>(fileName_: String; filter, wrap: Integer; mipMaps: Boolean): Boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Загрузка текстуры из TGA-файла (используется не напрямую, а функцией <a class="normal"  href="CoreTexture.TTexture.html#Load">TTexture.Load</a>)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Save"></a><code>function <b>Save</b>(fileName_: String): Boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Сохранение текстуры в файл (только TGA-файлы)  </p>
<h6 class="description_section">Параметры</h6>
<dl class="parameters">
<dt>fileName_</dt>
<dd>имя файла</dd>
</dl>
<h6 class="description_section">Возвращаемые значения</h6>
<p class="return">True если текстура сохранена</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SaveTGA"></a><code>function <b>SaveTGA</b>(fileName_: String): Boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Сохранение текстуры в файл (используется не напрямую, а функцией <a class="normal"  href="CoreTexture.TTexture.html#Save">TTexture.Save</a>)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Enable"></a><code>procedure <b>Enable</b>(stage: Integer = 0);</code></td>
</tr>
<tr><td colspan="2">
<p>
Включение текстуры </p>
<h6 class="description_section">Параметры</h6>
<dl class="parameters">
<dt>stage</dt>
<dd>номер текстурного слоя</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Disable"></a><code>procedure <b>Disable</b>; overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Выключение текстуры (на слое <a class="normal"  href="CoreTexture.TTexture.html#curStage">curStage</a> (переданном в <a class="normal"  href="CoreTexture.TTexture.html#Enable">TTexture.Enable</a>))</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Disable"></a><code>class procedure <b>Disable</b>(stage: Integer); overload;</code></td>
</tr>
<tr><td colspan="2">
<p>
Выключение текстуры </p>
<h6 class="description_section">Параметры</h6>
<dl class="parameters">
<dt>stage</dt>
<dd>номер текстурного слоя</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
procedure StartRender; procedure EndRender;</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Сгенерировал <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.11.0</a> дата/время 2010-05-02 13:43:29</em>
</span>
</body></html>
